package com.graduate.game.assignment.mapper;

import com.graduate.game.assignment.pojo.record;
import com.graduate.game.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface recordMapper {

    public int insertRecord(record record);

    //根据getuser查看接收记录
    public List<record> getbyidRecords(String getuser);

    //根据assginid来获取一条记录
    public record getOneRecordByID(int assginid);

    //任务提交审核
    public int updateRecord(record record);

    //根据发布者返回接受审核
    public List<record> getByPulisher(String publisher);

    //修改state
    public int updateState(record record);

}
